export default {
  data () {
    return {
      list_detailList_c: [
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '单价', prop: 'price', cn: 'el-input-number', size: "mini", min: 0 },
        { label: '订货数量', prop: 'quantity', cn: 'el-input-number', size: "mini", min: 0 },
        { label: '金额', prop: 'amount' },
        { label: '备注', prop: 'remark', cn: 'el-input', type: 'textarea' },
      ],
      list_order_c: [
        { label: '编号', prop: 'id' },
        { label: '发货编号', prop: 'deliveryNo' },
        { label: '合同编号', prop: 'contractNo' },
        { label: '客户名称', prop: 'customer.name' },
        { label: '送货方式', prop: 'deliveryMethod' },
        { label: '交货日期', prop: 'deliveryDate' },
        { label: '收货地址', prop: 'deliveryAddress' },
        { label: '联系人', prop: 'contact' },
        { label: '联系电话', prop: 'phone' },
        { label: '出库状态', prop: 'outboundStatus' },
      ],
      list_e_c: [
        { form_item_prop: { label: '发货单号', prop: 'deliveryNo', required: true }, component_name: 'el-input', component_prop: { disabled: true } },
        { form_item_prop: { label: '退货日期', prop: 'returnDate', required: true }, component_name: 'el-date-picker', component_prop: { 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetime' } },
        { form_item_prop: { label: '退货原因', prop: 'returnReason', }, component_name: 'el-input' },
        { form_item_prop: { label: '备注', prop: 'remark' }, component_name: 'el-input', component_prop: { type: "textarea", resize: "none", rows: 4, style: "width:400px" } },
      ],
      list_q_c: [
        { form_item_prop: { label: '退货单号', prop: 'returnNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '发货单号', prop: 'deliveryNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '合同编号', prop: 'contractNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '客户名称', prop: 'customerId' }, component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'name' } } },
        { form_item_prop: { label: '退货日期', prop: 'returnAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': 'yyyy-MM-dd HH:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
        { form_item_prop: { label: '入库状态', prop: 'inboundStatus' }, component_name: 'el-select', component_prop: { option_data: [{ value: '未入库' }, { value: '已入库' }, { value: '入库中' }], option_prop: { value: 'value', label: 'value' } } },
      ],
      list_c: [
        { label: '编号', prop: 'id' },
        { label: '退货单号', prop: 'returnNo' },
        { label: '发货单号', prop: 'deliveryNo' },
        { label: '合同编号', prop: 'contractNo' },
        { label: '客户名称', prop: 'customer.name' },
        { label: '退货日期', prop: 'returnDate' },
        { label: '退货金额', prop: 'returnAmount' },
        { label: '入库状态', prop: 'inboundStatus' },
      ],
      list_material_c: [
        { label: '编号', prop: 'id' },
        { label: '物料编码', prop: 'code' },
        { label: '物料名称', prop: 'name' },
        { label: '型号', prop: 'model' },
        { label: '规格', prop: 'specification' },
        { label: '单位', prop: 'unit' },
        { label: '单价', prop: 'price' },
        { label: '类型', prop: 'category.name' },
        { label: '备注', prop: 'remark' },
      ],
      list_q: {
        returnNo: null,
        deliveryNo: null,
        contractNo: null,
        customerId: null,
        returnStartDate: null,
        returnEndDate: null,
        returnAttr: [],
        inboundStatus: null,
      },
      list_e: {
        deliveryId: null,
        deliveryNo: null,
        detailList: [],
        id: null,
        remark: null,
        returnDate: null,
        returnReason: null
      },
      pager: {
        page: 1,
        limit: 10,
        total: 0
      },
      dwadawdwa: {
        deliveryNo: null,
        contractNo: null,
        customerId: null,
        contractNo: null,
        deliveryStartDate: null,
        deliveryEndDate: null,
        deliveryAttr: []
      },
      list_order_q_c: [
        { form_item_prop: { label: '发货编号', prop: 'deliveryNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '合同编号', prop: 'contractNo' }, component_name: 'el-input' },
        { form_item_prop: { label: '客户名称', prop: 'customerId' }, component_name: 'el-input', component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'name' } } },
        { form_item_prop: { label: '交货日期', prop: 'deliveryAttr' }, component_name: 'el-date-picker', component_prop: { 'value-format': '	yyyy-MM-dd hh:mm:ss', type: 'datetimerange', 'range-separator': "至", 'start-placeholder': "开始日期", 'end-placeholder': "结束日期" } },
      ],
      pager_order: {
        page: 1,
        limit: 10,
        total: 0
      },
    }
  },
}